import { routerRedux } from 'dva/router'
import { login } from '../services/login'

export default {
  namespace: 'login',

  state: {},

  effects: {
    * login ({ payload }, { select, call, put }) {
      const data = yield call(login, payload)
      console.log('login,', data)
      throw data
    }
  },
  reducers: {

  }

}
